package com.hougong.im.body.request;

import com.hougong.im.annotation.ProtocolField;
import com.hougong.im.body.BaseBodyCodec;

/**
 * 申请添加好友 0x0004 0x01    中心通用应答
 */
public class ApplyAddFriendRequest extends BaseBodyCodec<ApplyAddFriendRequest> {
    @ProtocolField(sort = 1)
    private short userNameLen;
    @ProtocolField(sort=2,lenField = "userNameLen")
    private String userName;

    public short getUserNameLen() {
        return userNameLen;
    }

    public void setUserNameLen(short userNameLen) {
        this.userNameLen = userNameLen;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return "ApplyAddFriendRequest{" +
                "userNameLen=" + userNameLen +
                ", userName='" + userName + '\'' +
                '}';
    }
}
